<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">你好</div>
  <script type="x-template" id="template">
    <div>
      <h2>{{message}}</h2>
    </div>
  </script>



  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  <script>
    // console.log(document.getElementById('template'));
    Vue.createApp({
      template: '#template',
      data: function() {
        return {
          message: 'Hello World'
        }
      }
    }).mount('#app')
  </script>

</body>
</html>